package deep9jvmdvm;

/*
Java 线程优化 偏向锁，轻量级锁、重量级锁
https://blog.csdn.net/ChinaDragon10/article/details/125904269?csdn_share_tail=%7B%22type%22%3A%22blog%22%2C%22rType%22%3A%22article%22%2C%22rId%22%3A%22125904269%22%2C%22source%22%3A%22ChinaDragon10%22%7D&ctrtid=1k2m7
 */
public class Testdeep9jvmdvm1 {
    private Object lock = new Object();
    private int value;

    public void setValue() {
        synchronized (this) {
            value++;
        }
    }
}
